package cn.kai.org.domain;

import cn.kai.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author Kai
 * @Date 2022/6/1 11:35
 * @PackageName:cn.kai.org.domain
 * @ClassName: department
 * @Description: department表domain
 * @Version 1.0
 */

@Data
public class Department extends BaseDomain {
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Employee manager;
    private Long parent_id;
    private Department parent;
    private Long shop_id;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)  //集合不为空才返回
    private List<Department> children = new ArrayList<>();

}
